package god;

import java.util.Scanner;

public class Ch02Ex06LeapYearExample {
	public static void main(String[] args) {
		int year;
		String title1 = "연도를 입력해주세요.";
		String result = "";
		Scanner sc = null;

		sc = new Scanner(System.in);
		System.out.println(title1);
		year = sc.nextInt();

		if (year % 4 == 0 && ((year % 100 != 0) || (year % 400 == 0))) {
			result = "윤년입니다.";
		} else {
			result = "윤년이 아닙니다.";
		}

		System.out.println(result);
		sc.close();

	}
}
